/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.awt.event.ActionEvent;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import view.adAlumnos.AlumnoPanel;
import view.adAlumnos.BuscarAlumnoPanel;

/**
 *
 * @author Pioli, Pablo; Ponzoni, Nelson
 */
class ControladorBuscarAlumno extends Controlador {

    private BuscarAlumnoPanel buscar;

    public ControladorBuscarAlumno(JPanel padre) {
        this.buscar = (BuscarAlumnoPanel) padre;
    }

    public enum Accion {

        BotonNomina,
        BotonVer,
        BotonCancelar,}

    public void iniciar() {

        //boton
//        this.buscar.BotonVer.setActionCommand("BotonVer");
//        this.buscar.BotonVer.addActionListener(this);
//
//        this.buscar.BotonCancelar.setActionCommand("BotonCancelar");
//        this.buscar.BotonCancelar.addActionListener(this);
    }

    /**
     * Gestion de accciones
     */
    @Override
    public void actionPerformed(ActionEvent e) {

        switch (ControladorBuscarAlumno.Accion.valueOf(e.getActionCommand())) {
            case BotonVer:

                break;
                
            case BotonCancelar:
                this.buscar.removeAll();
                this.buscar.updateUI();
                break;



            //--------------------------------------------------------------
        }//-> fin case

    }
}
